﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using DeviceInfoManage.BusinessLogicLayer;
public partial class DeviceRubbishInfoClear : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["adminUserName"] == null)
            {
                Response.Redirect("login.aspx");
            }
        }
    }
    protected void Btn_Clear_Click(object sender, EventArgs e)
    {
        RubbishInfo rubbishInfo = new RubbishInfo();
        if (rubbishInfo.ClearRubbishInfo())
            Response.Write("<script>alert('已报废设备相关信息清除完成!');</script>");
    }
}
